#!/usr/bin/env python
# -*- coding: utf-8 -*-

'''eof
name:征信白户检查
code:IC_MarkBlank
tableName:
columnName:
groups:个人征信
dependencies:IC
type:常用指标
dataSourceType:在线指标
description:
eof'''


def IC_MarkBlank():
    if IC['ICRCreditCue'] == []:
        return 1
    s = 0
    try:
        s += int(IC['ICRCreditCue'][0]['HouseLoanCnt'])
    except Exception:
        s += 0
    try:
        s += int(IC['ICRCreditCue'][0]['HouseLoan2Cnt'])
    except Exception:
        s += 0
    try:
        s += int(IC['ICRCreditCue'][0]['OtherLoanCnt'])
    except Exception:
        s += 0
    try:
        s += int(IC['ICRCreditCue'][0]['CardCnt'])
    except Exception:
        s += 0
    try:
        s += int(IC['ICRCreditCue'][0]['QuasiCnt'])
    except Exception:
        s += 0
    if s > 0:
        return 0
    else:
        return 1

result=IC_MarkBlank()